# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

pkgname=sigrok-cli
pkgver=0.7.2
pkgrel=1
pkgdesc='Command-line client for the sigrok software'
arch=('loong64' 'x86_64')
url='https://www.sigrok.org/wiki/Sigrok-cli'
license=('GPL3')
depends=('libsigrok' 'libsigrokdecode')
source=("http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('5862aa11a586ebb3acf9bffd1d2686cb5b3c3622b436080e05e2fc826a4814cf4746f128c01764f8dc664c5fc1a1e8c6ef66e548770278cc6ea99353d2173143')

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr

  make
}

package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}
